home *** CD-ROM | disk | FTP | other *** search
- Path: news.iconn.net!news
- From: thecrow@iconn.net (The Crow)
- Newsgroups: comp.lang.c++
- Subject: Re: can you help me learn programming ?
- Date: 24 Jan 1996 03:36:13 GMT
- Organization: I rule the world
- Message-ID: <4e49fe$qks@news.iconn.net>
- References: <sg19-2101960200070001@128.253.183.75>
- NNTP-Posting-Host: st-ts00-01.iconn.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- In article <sg19-2101960200070001@128.253.183.75>, sg19@cornell.eduW says...
- >
- >Hi,
- >I know nothing about computer programming but I am eager to learn.
- >
- >Can any kind soul suggest to me any good, comprehensive book (but for
- >absolute beginners) to learn how to programme in Visual Basic 4.0 (to move
- >onto Windows 95 programming) and Visual C/C ++ that include CD-Roms for
- >online help and such?
- >
- >Also, can anyone suggest to me a good, comprehensive Dictionary about
- >programming languages words, idioms, symbols and a good computer games
- >programming guide ?
- >
- >Please, give help besides and beyond the "for dummies" series, I am
- >serious about this.
- >If you wanna help, go ahead and you're very welcome, otherwise, never mind.
- >
- >Please, e-mail to
- >
- >sg19@cornell.edu (I do not browse this group, generally)
- >
- >Thanks a lot,
- >
- >Silvana
- First of all, you need to analyze what you would like to accomplish as a
- programmer. If you just want to do it recreationaly, then VB is all you need or
- will want. C/C++ is very difficult to learn, and should only be attempted if
- you are going to be doing anything that will need it, and or you feel like
- spending all-nighters dealing with the language. (number crunching generally
- brings VB to its knees, while C/C++ does it better than almost anything) C/C++
- is also very very cryptic. It can scare you a first. If you want to take the
- middle ground, go for Pascal (Turbo Pascal is also great), it is also VERY
- powerful and a litte more intuitive.
-
- If you plan to learn C/C++, do NOT start with windows. Get Turbo C++ for DOS,
- it is THE best environment to learn on. It is very powerful, very easy, very
- cheap, and has help files for everything.
-
- As far as books that start general Teach Yourself C++ in 21 days has gotten
- good reviews. A very general summary of computer languages.
-
- Everything comes down to variables, and functions.
-
- variables STORE values in memory. You can then manipulate them the same way you
- would with a calculator.
-
- a = 2;
- b = 2;
-
- c = a + b;
-
- c is going to be 4. In any good programming language, you should DECLARE every
- variable. This tells the computer how big or small the values you will be
- storing are, or what type of value they are. If the value is going to be no
- bigger then say, 100, it would be silly to make the computer use up lots of
- memory (and also slowing things down) trying to make that variable be able to
- store very large numbers. The above example, would make a,b,c BYTE values. A
- byte value (also called CHAR) can be from 0 to 255, this is one BYTE of
- computer memory. These following are common variable types
-
- byte/char 0 to 255
- integer -3200 to 32000
- long integer billions
- real this can hold decimal places, the others have to be integers
-
- functions are the next basic idea, say you want to add a + b and then do a lot
- of other things with them OVER and OVER and OVER in you program. Rather than
- type your whole algorithm (set of commands) you make a function. You give the
- function a name, and then stick whatever code inside of it you want. To execute
- all of that code, just use the name of the function to CALL it.
-
- all the confusing commands you will see in programming are functions built into
- your compiler. All you need do is look them up in the help file to see what
- they do and how to use them (well...ok, you have to do some trial and error
- too) in C++ one function is called COUT
-
- cout << "Hello World";
-
- calls a function that reads in the "Hello World" and sends it to the screen.
- That way you dont have to do the work. The only other basic idea you need to
- know is loops. basically a loop will execute the code inside it over and over
- until a certain thing happens. say you want to add A and B until they are equal
- to 150, you make a loop and tell it to keep going until A + B = 150 the real
- trick in programming, to do it well, is to understand math concepts, and be
- able to visualize how your code works (it will get very very big at times) you
- dont have to be able to calculate numbers in your head, but you DO need to know
- what is going on, so you dont do it some stupid slow way. When you start, put
- the compiler on the slowest computer you can find, it will force you to use
- good habits.
-
- if you get stuck just grab your local computer genius
-
-
-
-
-
- --
- The Crow - thecrow@iconn.net
- "It can't rain all the time"
- -Kryptology
-
-